import request from '@/utils/request';

const ToolsAPI = {
  /**
   * 发送邮箱验证码
   *
   * @param file
   */
  sendEmailCode(data) {
    return request({
      url: 'tools/sendEmailCode',
      method: 'post',
      data: data,
    });
  },

  /**
   * 发送邮箱验证码
   *
   * @param file
   */
  sendSmsCode(data) {
    return request({
      url: 'tools/sendSmsCode',
      method: 'post',
      data: data,
    });
  },
};

export default ToolsAPI;
